#include<stdio.h>
void splitfloat(float x, int* intpart, float* fracpart);
int main(void)
{
    float x, fracpart;
    int intpart;
    scanf("%f", &x);
    splitfloat(x, &intpart, &fracpart);
    printf("intpart=%d\n", intpart);
    printf("fracpart=%f\n", fracpart);
}
void splitfloat(float x, int* intpart, float* fracpart)
{
    *intpart = (int)x;
    *fracpart = x - *intpart;
}